
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* 响应式默认样式 */
@media (min-width: 600px) {
    body {
        font-size: 16px;
        margin: 20px;
    }
}

@media (max-width: 599px) {
    body {
        font-size: 14px;
        margin: 10px;
    }
}

/* 筛选表单 */
.filter-form {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

.filter-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.filter-form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #45a049;
}

/* 数据表格 */
.data-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 状态样式 */
.status-rented {
    color: #2ecc71;
}

.status-not-rented {
    color: #e74c3c;
}

/* 按钮容器 */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
}

.green-button,
.blue-button,
.red-button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.green-button {
    background-color: #4CAF50;
}

.green-button:hover {
    background-color: #45a049;
}

.blue-button {
    background-color: #336dff;
}

.blue-button:hover {
    background-color: #255dd8;
}

.red-button {
    background-color: #FF5733;
}

.red-button:hover {
    background-color: #ff3f1a;
}

/* 隐藏行号 */
table tr th:nth-child(1),
table tr td:nth-child(1) {
    display: none;
}

/* 展开区域 */
.details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.expandable {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
.expanded {
    display: table-row;
}


/* 响应式表格 */
@media (max-width: 600px) {
    .data-table th,
    .data-table td {
        padding: 6px;
        font-size: 12px;
    }

    .filter-form button {
        width: 100%;
        padding: 10px;
    }
}

@media (min-width: 601px) {
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 14px;
    }
}